<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/18
 * Time: 17:32
 */

namespace app\common\controller;


use think\Controller;

class Sms extends Controller
{

    /**
     *
     * 发送短信封装接口
     * @param $mobile
     * @param $content
     * @param $sendTime
     * @return mixed
     * */
    public function sendMessage($mobile,$content,$sendTime)
    {
        $url = "http://121.42.151.230:8868/sms.aspx";
        $data = array(
            'userid' => 934,
            'account' => 'pf8699',
            'mobile' => $mobile,
            'content' => $content,
            'sendTime' => $sendTime,
            'action' => 'send',
            'extno' => '',
            'password' => 123456
        );
        $res = curl_request($url,'post',$data);

    }

}